Skip to content

Add some sign-in events#12041

Merged
Sgtpluck merged 3 commits intomainfrom
dmm/sign-in-events
Apr 1, 2025
Merged

Add some sign-in events#12041
Sgtpluck merged 3 commits intomainfrom
dmm/sign-in-events

Conversation

@Sgtpluck
Copy link
Copy Markdown
Contributor

@Sgtpluck Sgtpluck commented Apr 1, 2025

🎫 Ticket

Link to the relevant ticket:
157

🛠 Summary of changes

This change:

  • adds three sign-in events
    • mfa_submission_code_rate_limited
    • logged_in_password_change
    • logged_in_account_purged

While building this out, I noted that our general error structure has changed from from arrays (password: [:too_short]) to objects (password: { too_short: true }).

That change makes sense from a logging standpoint (esp since cloudwatch has limited ways of querying), I'm not sure it makes sense for our API. I added some translation code to create errors that adhere to our current OpenAPI spec. However, if there are strong feelings otherwise, we can remove that code and update the OpenAPI spec.

@Sgtpluck Sgtpluck requested a review from mitchellhenke April 1, 2025 13:58
@Sgtpluck Sgtpluck merged commit 7702a4d into main Apr 1, 2025
1 check passed
@Sgtpluck Sgtpluck deleted the dmm/sign-in-events branch April 1, 2025 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants